﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PopUp.master" AutoEventWireup="true"
    CodeBehind="KullaniciOdeme.aspx.cs" Inherits="IKYSWeb.Yetki.KullaniciOdeme" %>

<%@ Register Src="../UserControls/Tarih.ascx" TagName="Tarih" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/AutoComplete.ascx" TagName="AutoComplete" TagPrefix="uc2" %>
<%@ Register Src="../UserControls/YetkiKontrol.ascx" TagName="YetkiKontrol" TagPrefix="uc4" %>
<%@ Register Src="../UserControls/CokluSecim.ascx" TagName="CokluSecim" TagPrefix="uc3" %>
<%@ Register Src="~/UserControls/Sayi.ascx" TagName="Sayi" TagPrefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="server">
    <h3 class="title">
        <asp:Label runat="server" ID="lblGecerliKullanici" Text="? " />
        Ödeme Bilgileri</h3>
    <asp:MultiView runat="server" ID="mv" ActiveViewIndex="0">
        <asp:View runat="server" ID="vListe">
            <table class="form">
                <tr>
                    <td class="label">
                        Ödeme Miktarı
                    </td>
                    <td>
                        <uc5:Sayi ID="txtOdemeMiktari" runat="server" Width="95" DataType="Double" HataMesaji="Ödeme Miktarını Giriniz" />
                        &nbsp;TL
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Ödeme Tarihi
                    </td>
                    <td>
                        <uc1:Tarih ID="ucOdemeTarihi" runat="server" HataMesaji="Ödeme Tarihini Seçiniz"
                            ValidationGroup="kaydet" Width="400" />
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Son Geçerlilik Tarihi
                    </td>
                    <td>
                        <uc1:Tarih ID="ucSonGecerlilikTarihi" runat="server" HataMesaji="Son Geçerlilik Tarihini Seçiniz"
                            ValidationGroup="kaydet" Width="400" />
                    </td>
                </tr>
                <tr>
                    <td class="label" colspan="1">
                        <b>TOPLAM:
                            <asp:Label runat="server" ID="lblToplamUcret" Text="0" />&nbsp;TL</b>
                    </td>
                    <td align="left">
                        <asp:Button ID="btnKaydet" runat="server" Text="Ekle" OnClick="btnKaydet_Click" CausesValidation="False" />
                    </td>
                </tr>
            </table>
            <asp:GridView ID="grdOdemeListe" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CssClass="grid" EmptyDataText="Kullanıcıya ait Ödeme Bilgisi Bulunamadı" DataKeyNames="KullancıOdemeID"
                PageSize="20" OnRowDataBound="grdOdemeListe_RowDataBound" OnRowCommand="grdOdemeListe_RowCommand">
                <Columns>
                    <asp:BoundField DataField="Ucret" HeaderText="Ücret" />
                    <asp:BoundField DataField="OdemeTarihi" HeaderText="Ödeme Tarihi" />
                    <asp:BoundField DataField="SonGecerlilikTarihi" HeaderText="Son Geçerlilik Tarihi"
                        DataFormatString="{0:dd.MM.yyyy}" />
                    <asp:ButtonField ControlStyle-CssClass="grd_Guncelle" CommandName="Guncelle" Text="Güncelle" />
                </Columns>
                <RowStyle CssClass="even" />
                <AlternatingRowStyle CssClass="odd" />
                <EditRowStyle CssClass="odd" />
                <EmptyDataRowStyle CssClass="empty" />
            </asp:GridView>
        </asp:View>
        <asp:View runat="server" ID="vKayit">
            <table class="form">
                <tr>
                    <td class="label">
                        Ödeme Miktarı
                    </td>
                    <td>
                        <uc5:Sayi ID="txtOdemeMiktariEdit" runat="server" Width="95" DataType="Double" HataMesaji="Ödeme Miktarını Giriniz" />
                        &nbsp;TL
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Ödeme Tarihi
                    </td>
                    <td>
                        <uc1:Tarih ID="ucOdemeTarihiEdit" runat="server" HataMesaji="Ödeme Tarihini Seçiniz"
                            ValidationGroup="kaydet" Width="400" />
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Son Geçerlilik Tarihi
                    </td>
                    <td>
                        <uc1:Tarih ID="ucSonGecerlilikTarihiEdit" runat="server" HataMesaji="Son Geçerlilik Tarihini Seçiniz"
                            ValidationGroup="kaydet" Width="400" />
                    </td>
                </tr>
                <tr>
                    <td colspan="1" class="buton">
                        <asp:Button ID="btnGeri" runat="server" CssClass="btn_back" Text="Geri" CausesValidation="False"
                            OnClick="btnGeri_Click" />
                    </td>
                    <td class="buton" colspan="3">
                        <asp:Button ID="btnGuncelle" runat="server" Text="Güncelle" OnClick="btnGuncelle_Click"
                            CausesValidation="False" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
